const filterOption = {
  items: [{
      label: "条码",
      type: "input",
      data: undefined,
      placeholder: "",
      value: undefined,
      key: "barCode"
    },
    {
      label: "发货时间",
      type: "input",
      data: undefined,
      placeholder: "",
      value: undefined,
      key: "deliveryDate"
    },
  ],
  btnGroup: [{
    label: "查询",
    type: "search"
  }]
};
const searchFromData = {
  barCode: undefined,
  deliveryDate: undefined,
}
const filterOption2 = {
  items: [{
      label: "销售分类",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin"
    },
    {
      label: "系列",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin2"
    },
    {
      label: "款式名称",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin3"
    },
  ],

};
const searchFromData2 = {
  origin: undefined,
  origin2: undefined,
  origin3: undefined,
};
const filterOption3 = {
  items: [
    
    {
      label: "主石形状",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin"
    },
    {
      label: "主石材质",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin2"
    },
    {
      label: "主石外观",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin3"
    },
    {
      label: "材质",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin"
    },
    {
      label: "净度",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin2"
    },
    {
      label: "对称",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin3"
    },
    {
      label: "抛光",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin"
    },
    {
      label: "链长",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin2"
    },
    {
      label: "颜色",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin3"
    },
    {
      label: "切工",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin"
    },
    {
      label: "特殊定制要求",
      type: "dropdown",
      data: [{
          label: "大陆",
          value: "1"
        },
        {
          label: "香港",
          value: "2"
        },
        {
          label: "境外",
          value: "3"
        }
      ],
      placeholder: "请选择",
      value: undefined,
      key: "origin2"
    },
  ],
  btnGroup:[
    {
      label:'查询',
      type:'search'
    },
    {
      label:'清空',
      type:'clear'
    }
  ]

};
const searchFromData3 = {
  origin: undefined,
  origin2: undefined,
  origin3: undefined,
};
const pager = {
  params: {
    pageIndex: 1,
    pageSize: 10,
  },
  pageTotal: 100,
  pageSizeArr: [10, 20, 30, 40]
};
const path = ['销售管理', '售中订单列表', '发起售中变更单'];
const chartOptionColor = ['#cc3333', '#9999cc', '#33cc66'];
const chartOption = {
  tooltip: {
    trigger: 'item',
    formatter: "{a} <br/>{b}: {c} ({d}%)",
    position: [200, 60]
  },
  legend: {
    show: false,
    orient: 'vertical',
    x: 'left',
    data: ['退款待处理', '待打款', '待仓库收货']
  },
  series: [{
    name: '三个月内未完结',
    type: 'pie',
    radius: ['50%', '70%'],
    color: chartOptionColor,
    avoidLabelOverlap: false,
    label: {
      normal: {
        show: false,
        position: 'center'
      },
      emphasis: {
        show: true,
        textStyle: {
          fontSize: '12',
          fontWeight: 'bold'
        }
      }
    },
    labelLine: {
      normal: {
        show: false
      }
    },
    data: [{
        value: 335,
        name: '退款待处理'
      },
      {
        value: 310,
        name: '待打款'
      },
      {
        value: 234,
        name: '待仓库收货'
      },
    ]
  }]
};
const tabFormInline = {
  order: 'P201901021050421801657',
  status: '待退款',
  sapOrder: '1050421801657',
  defaultOrder: 'P201901021050421801111',
  defaultSapOrder: '1023456789210'
};
const tableFormInline = {
  order: 'P201901021050421801657',
  defaultOrder: '20198009888',
  user: '王五',
  deliveryType: '到店自提',
  deliveryAddress: '深圳华强北茂业百货店',
  soleAddress: '深圳世界之窗店',
  soler: '张三'
};
const refundStep = {
  activeStep: 1,
  step: [{
      title: '提交申请',
      description: '2017-10-01 12:00'
    },
    {
      title: '售中单审核',
      description: '2017-10-02 12:00'
    },
    {
      title: '待用户支付',
      description: ''
    },
    {
      title: '售中变更成功',
      description: ''
    },
  ]
};
const sliderSelect = {
  size:{
    value:20,
    option:[{
      value: '20',
      label: '20'
    }, {
      value: '30',
      label: '30'
    }],
    sliderVal:[20,20]
  },
  weight:{
    value:20,
    option:[{
      value: '20',
      label: '20'
    }, {
      value: '30',
      label: '30'
    }],
    sliderVal:[20,20]
  }
}
let Model = {
  data() {
    return {
      Model: {
        path: path,
        pager: pager,
        filterOption: filterOption,
        filterOption2: filterOption2,
        searchFromData: searchFromData,
        searchFromData2: searchFromData2,
        defaultSearchFromData2: searchFromData2,
        filterOption3:filterOption3,
        searchFromData3: searchFromData3,
        defaultSearchFromData3: searchFromData3,
        chartOption: chartOption,
        chartOptionColor: chartOptionColor,
        tableData: [{
          deliveryNo: 1
        },{
          deliveryNo: 2
        }],
        deliveryRadio: 0,
        deliveryDatePick: '',
        activeTab: 1,
        detailDialogFlag: false,
        tabFormInline: tabFormInline,
        tableFormInline: tableFormInline,
        refundStep: refundStep,
        outerVisible: false,
        dialogTableData: [{
          poCode: 1
        },{
          poCode: 2
        }],
        dialogTableSelect:'1',
        sliderSelect:sliderSelect
      }
    }
  }
}
export default Model;
